import request from '@/utils/request'

// 查询产线列表
export function listPline(query) {
  return request({
    url: '/system/pline/list',
    method: 'get',
    params: query
  })
}

// 查询产线详细
export function getPline(id) {
  return request({
    url: '/system/pline/' + id,
    method: 'get'
  })
}

// 新增产线
export function addPline(data) {
  return request({
    url: '/system/pline',
    method: 'post',
    data: data
  })
}

// 修改产线
export function updatePline(data) {
  return request({
    url: '/system/pline',
    method: 'put',
    data: data
  })
}

// 删除产线
export function delPline(id) {
  return request({
    url: '/system/pline/' + id,
    method: 'delete'
  })
}

// 导出产线
export function exportPline(query) {
  return request({
    url: '/system/pline/export',
    method: 'get',
    params: query
  })
}